package com.education.wisdom.pojo;

import com.education.common.core.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 优惠券表 jr_coupons
 * 
 * @author ruoyi
 * @date 2019-04-01
 */
public class Coupons extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/**  */
	private Integer id;
	/** 达人币 */
	private BigDecimal yhCurrency;
	/** 开始时间 */
	private Date startTime;
	/** 结束时间 */
	private Date endTime;
	/** 持有人 */
	private String yhUserid;
	/** 课程Id */
	private Integer yhCatalogId;
	/** 1课程优惠券2平台优惠券 */
	private String yhType;
	/** 满减金额 */
	private BigDecimal fullCurrency;
	/** 是否删除 1是 */
	private String delFlag;
	//是否过期 1否 2是
	private String isOverdue;
	//课程名称
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIsOverdue() {
		return isOverdue;
	}

	public void setIsOverdue(String isOverdue) {
		this.isOverdue = isOverdue;
	}

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setYhCurrency(BigDecimal yhCurrency) 
	{
		this.yhCurrency = yhCurrency;
	}

	public BigDecimal getYhCurrency() 
	{
		return yhCurrency;
	}
	public void setStartTime(Date startTime) 
	{
		this.startTime = startTime;
	}

	public Date getStartTime() 
	{
		return startTime;
	}
	public void setEndTime(Date endTime) 
	{
		this.endTime = endTime;
	}

	public Date getEndTime() 
	{
		return endTime;
	}
	public void setYhUserid(String yhUserid) 
	{
		this.yhUserid = yhUserid;
	}

	public String getYhUserid() 
	{
		return yhUserid;
	}
	public void setYhCatalogId(Integer yhCatalogId) 
	{
		this.yhCatalogId = yhCatalogId;
	}

	public Integer getYhCatalogId() 
	{
		return yhCatalogId;
	}
	public void setYhType(String yhType) 
	{
		this.yhType = yhType;
	}

	public String getYhType() 
	{
		return yhType;
	}
	public void setFullCurrency(BigDecimal fullCurrency) 
	{
		this.fullCurrency = fullCurrency;
	}

	public BigDecimal getFullCurrency() 
	{
		return fullCurrency;
	}
	public void setDelFlag(String delFlag) 
	{
		this.delFlag = delFlag;
	}

	public String getDelFlag() 
	{
		return delFlag;
	}

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("yhCurrency", getYhCurrency())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("yhUserid", getYhUserid())
            .append("yhCatalogId", getYhCatalogId())
            .append("yhType", getYhType())
            .append("fullCurrency", getFullCurrency())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
